﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using FwProject.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.ShoppingMall.Commodity
{
    /// <summary>
    /// 用户收藏商品表
    /// </summary>
    [Table("commodity_collection")]
    public class CommodityCollection : Entity<Guid>, ICreationAudited
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Required]
        public long UserId { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public Guid ShopproductId { get; set; }

        /// <summary>
        ///是否显示
        /// </summary>
        public bool isActive { get; set; } = true;
        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get ; set; }
    }
}
